package testGroovy

assert [0:[2,4,6], 1:[1,3,5]] == [1,2,3,4,5,6].groupBy { it % 2 }
def list = ['hou','jinxin']
println list.withIndex()
println list.withIndex().groupBy { it ->
    it
}

